var option_pref;

function _onload_optionwin()
{//alert("1");
	option_pref =  Components.classes["@mozilla.org/preferences-service;1"].
                    getService(Components.interfaces.nsIPrefService);
	option_pref = option_pref.getBranch("extensions.picbrowser@iodragon.com.");//alert('2');
	var interfaceVersion=option_pref.getCharPref("interfaceVersion");//alert(interfaceVersion);
	
	var selobj=document.getElementById(interfaceVersion);
	document.getElementById("interfaceVersion").selectedItem=selobj;
}
function _onclose_optionwin()
{//alert("1");
	var interfaceVersion="000";

	interfaceVersion=document.getElementById("interfaceVersion").selectedItem;
	//alert(interfaceVersion.id);
	option_pref.setCharPref("interfaceVersion",interfaceVersion.id);//alert('2');
}
		

		